home *** CD-ROM | disk | FTP | other *** search
- /*
- Compute Jacobian and value of nonlinear eq (f^r(x) - x - xoffset)
- by ussing user supplied Jacobian function
- -----------------------------
- NOTE: nonlinear equations are not handled in periodic coords
- Input: r=period of an orbit, n=phase space dimension,
- x[n] = coords of a current guess
- Output: alpha[n][n]=DF(x) (Jacobian), beta[n]=F(x)
- */
-
- void
- usrfun(x,alpha,beta,r,n)
- double *x,**alpha,*beta;
- int r,n;
- {
- int i;
- extern double *t_vf,*xoffset;
-
- /* xoffset need to be installed later */
- for(i=0;i<n;i++) xoffset[i] = 0;
- /* Jacobian derivative is defined */
- /*
- for(i=0;i<n;i++) t_vf[i] = x[i];
- fderiv_user(t_vf,alpha,r,n);
- fmap_user(t_vf,r,n);
- for(i=0;i<n;i++) beta[i] -=(x[i] + xoffset[i]);
-
- */
- }
-